Repository navigation
build(release): relock and stage uv.lock in the release commit (backport #522 to stable/10) - #523
Conversation
* test: check that the release commit carries uv.lock's version bump Fails on main: build_command is plain 'uv build', so uv.lock keeps the old project version after a release. Refs #521 * build(release): relock and stage uv.lock in the release commit The release commit bumped pyproject.toml but not uv.lock. On stable branches the lock then stayed stale until the next push, and every backport in between failed to regenerate because its uv sync relocked a file outside the generated paths. Use python-semantic-release's documented uv recipe. Closes #521 * test: let the relock test resolve with the network uv lock under UV_OFFLINE fails on CI runners whose uv cache lacks packages for every resolution split (attrs for python>=3.12), so the test failed deterministically. Refs #521 (cherry picked from commit 032b8b8)
There was a problem hiding this comment.
🟡 Changes recommended
Release commands can succeed despite relocking or staging failures, allowing a stale or uncommitted lock to ship, while the test masks this failure path.
1 open issue
What changed in this PR
Backports #522 to stable/10 to keep uv.lock synchronized with release versions and prevent stale locks from blocking backport regeneration.
Changes:
- Relock and stage
uv.lockbefore building the release package. - Add an acceptance test that simulates a version bump and verifies the lock’s version and staging.
| File | Description |
|---|---|
tests/acceptance/test_release_relocks.py |
Tests release-time lock synchronization and staging in a scratch repository. |
pyproject.toml |
Adds relocking and staging to the semantic-release build command. |
Review effort: Balanced
Signed-off-by: Josh Wulf <josh.wulf@camunda.com>
|
🤖 The changes in this PR were produced by nano-agent, an autonomous agent. Commits are authored under the operator's own git identity when one is resolvable (the human running the fleet), so they can satisfy CLA/DCO requirements; this note records that the work was generated by the agent. |
There was a problem hiding this comment.
🟡 Changes recommended
The failure tests can pass for a broken release command chain because non-target steps are not stubbed to succeed, leaving continuation after relocking fails undetected.
1 open issue
1 resolved since last review
Review effort: Balanced
Signed-off-by: Josh Wulf <josh.wulf@camunda.com>
|
nano-ack: issuecomment-7280133744 — Acknowledged: this is the nano-agent attribution note. It is informational and needs no code change. |

Backport of #522 to
stable/10.Generated code is restored from
stable/10and regenerated by the Backport workflow in a separatechore(gen)commit.relates to #521 #519